<!-- Halaman Kiri -->
<?php $cek = get_total($deposits) ?>
<?php if ($this->uri->segment(3)): ?>
    <div id="blokdata">
        <div id="ucapan">

            <img src="<?php echo base_url() ?>image/konftiketbooking.jpg" />

        </div>
    <?php endif ?>
    <div id="stat"><b>Ticket dengan status Book</b> </div>
    <!--    <div id="search">
            <div id="boxsearch"><b>Search Booking</b></div>
            <div id="boxdesc">
                <input type="text" class="input4"  />&nbsp;<input type="submit" class="btn" value="Search" /><br />
                Anda dapat memasukkan kode Booking, nama Penumpang, kota keberangkatan , kota tujuan atau Airline
            </div>
        </div>-->
    <div id="perhatian">
        <font color="#FF0000"><b>Perhatian</b><br /><br />
        *Time limit hanya sebagai acuan yang dikeluarkan oleh Airline. Airline dapat sewaktu-waktu , sesuai pertimbangan nya sendiri, membatalkan atau memajukan time limit anda.</font>
    </div><br>
    <div id="headertiket">
        <table class="table table-hover table-bordered" style="width:610px;">
            <thead class="table-head">
                <tr>
                    <td style="text-align:center;"><strong>Kode Booking</strong></td>
                    <td style="text-align:center;"><strong>Tanggal Booking</strong></td>
                    <td style="text-align:center;"><strong>Time Limit</strong></td>
                    <td style="text-align:center;" colspan="2"><strong>Harga</strong></td>
                    <td style="text-align:center;"><strong>Status</strong></td>
                    <td style="text-align:center;"><strong>Issued</strong></td>
                </tr>
            </thead>
            <tbody>
                <?php if (!($rows == null)): ?>
                    <?php foreach ($rows as $booking): ?>
                        <tr>
                            <td><img src="<?php echo base_url() ?>image/icon_<?php echo strtolower($booking->airlines_name) ?>_2.jpg"/><?php echo $booking->flight_number ?><br />(<?php echo $booking->code ?>)</td>
                            <td>
                                <?php echo date('d F Y', strtotime($booking->date_create)); ?>
                                JAM: <?php echo date('H:i', strtotime($booking->date_create)); ?>
                            <td>
                                <?php echo date('d F Y', strtotime($booking->expire)); ?>
                                JAM: <?php echo date('H:i', strtotime($booking->expire)); ?>
                            </td>
                            <td>Total Fare<br />*Fee<br />Harus dibayar</td>
                            <td>
                                <?php if ($booking->price_value == 0): ?>
                                    Request By Admin
                                <?php else: ?>
                                    <?php echo get_money($booking->price_value) ?>    
                                <?php endif ?>
                                <br />
                                -<?php echo get_money($booking->fee) ?><br /><?php echo get_money($booking->total) ?></td>
                            <td><?php echo get_status_color($booking->status); ?></td>
                            <td>
                                <?php if ($booking->status == 3): ?>
                                    <?php echo anchor('costumers/show_book/' . $booking->id, "ISSUE", "class='btn'") ?>
                                <?php else: ?>
                                    <?php echo anchor('costumers/show_book/' . $booking->id, "VIEW", "class='btn'") ?>
                                <?php endif ?>
                            </td>
                        </tr>
                    <?php endforeach ?>
                <?php endif ?>
            </tbody>
        </table>            

    </div>
</div>
<!-- tutup halaman kiri-->  
<p><?php echo $links; ?></p>
